var CWContact = require('./cwcontact').CWContact;

// Construire un nouvel object CWContact
var c = new CWContact();
c.firstname('Simon').name('Renoult')
    .address('14bis rue beauregard, 10000 TROYES')
    .organisation().push('UTT');

var c2 = new CWContact();
c2.firstname('Adrien').name('Amoros')
    .address('14 rue de la Guerarde, 10000 TROYES')
    .tel('0604506485')
	.mail("test@test.fr")
    .organisation().push('UTT');

console.log(c.compare(c2));
c.merge(c2);
console.log(c);

console.log(c.toCSV());


var c3 = new CWContact();
c3.fromVCardFile('test/testContact.vcf');
console.log(c3);
console.log(c3.toCSV());
